#include <iostream>
#include "serial.h"
#define STDOUT(msg) if(1) cout << msg << endl;
using namespace std;

/**
 * @brief Test voor log.cpp klasse
 *
 */

 int main(int argc, char** argv) {

	char xd= 0x82;
	int i=0;
	int j=0;

	Serial *port = new Serial();

	port->dev = "/dev/ttyUSB0";
	port->baud = 19200;
	port->dataBits = 8;

	int result = port->initPort();

	printf("Init returned: %i\n", result);

	if (result != -1) {
		for(i=0;i<100;i++)
			{
			j=port->sendChar(xd);
		}
	}
	port->closePort();
	return -1;
}
